package com.congwulin.wechat.mapper.order;

import com.congwulin.wechat.entity.order.OrderBodyVO;
import com.congwulin.wechat.util.interfaces.IVOPersistent;

import java.util.List;

public class OrderBodyPersistent implements IVOPersistent {

    private OrderBodyMapper mapper;

    public OrderBodyPersistent(OrderBodyMapper mapper){
        this.mapper = mapper;
    }

    @Override
    public void delete(List<String> list) {

    }

    @Override
    public void insert(List<?> list) {
        mapper.batchInsert((List<OrderBodyVO>) list);
    }

    @Override
    public void update(List<?> list) {
        mapper.batchInsert((List<OrderBodyVO>) list);
    }
}
